package com.sfj.system;

import com.sfj.config.application.BaseApplication;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Controller;

/**
 * @author kaka
 * @Date 2025/5/1
 */
//@EnableScheduling
//@EnableCaching
//@MapperScan({"com.sfj.system.mapper"})
//public class Application extends BaseApplication {
//
//    public static void main(final String[] args) {
//        getSpringBootApplication(Application.class)
//                .run(args);
//    }
//
//}
@EnableScheduling
@EnableCaching
@MapperScan({"com.sfj.system.mapper"})
@ComponentScan("com.sfj")
public class Application extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(Application.class);
    }
}